Dashboard Temp Share Shortlinks Frames API

HTMLify

style.css
Views: 16 | Author: huxn-webdev
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
body {
  background: rgb(23, 23, 23);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

.card {
  position: relative;
  width: 30rem;
  height: 35rem;
  background-color: black;
  box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.5);
}

.content {
  position: absolute;
  bottom: 0px;
  width: 80%;
  height: 10px;
  background: crimson;
  left: 10%;
  text-align: center;
  transition: 0.5s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h3 {
  font-size: 30px;
  text-transform: uppercase;
  margin: 25px;
  color: #fff;
}

p {
  width: 80%;
  margin: 10px auto;
  font-size: 18px;
  transition: 0.5s;
  opacity: 0;
  line-height: 25px;
  color: #fff;
}

a {
  text-decoration: none;
  background-color: black;
  color: #fff;
  padding: 10px 15px;
  display: inline-block;
  margin-top: 10px;
  transition: 0.5s;
  opacity: 0;
  line-height: 25px;
  color: #fff;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s;
}

.card:hover .content {
  height: 100%;
  width: 100%;
  left: 0;
}

.card:hover p,
.card:hover a {
  opacity: 1;
  transition-delay: 0.5s;
}

.img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 1s;
}

.card:hover img {
  opacity: 0;
}